package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysPlay;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/15 13:03
 * @Version v1.0
 */
public interface SysplayServiceApi {
    /**
     * @description: 后端分页查询
     * @param: [sysPlay, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysPlay>
     * @author hhk
     * @date: 2024/11/15 13:05
     */
    @PostMapping(value = "/sysPlay/findSysPlayPaginationList")
    public PagedResponse<SysPlay> findSysPlayPaginationList(@RequestBody SysPlay sysPlay, @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);
    /**
     * @description: 新增
     * @param: [sysPlay]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:06
     */
    @PostMapping(value = "/sysPlay/addSysPlay")
    public void addSysPlay(@RequestBody SysPlay sysPlay);
    /**
     * @description: 根据id删除
     * @param: [playId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:07
     */
    @DeleteMapping(value = "/sysPlay/deleteSysPlayById")
    public void deleteSysPlayById(@RequestParam Long playId);
    /**
     * @description: 根据id回显
     * @param: [playId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:09
     */
    @GetMapping(value = "/sysPlay/findSysPlayById")
    public SysPlay findSysPlayById(@RequestParam Long playId);
    /**
     * @description: 修改
     * @param: [sysPlay]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:11
     */
    @PutMapping(value = "/sysPlay/updateSysPlay")
    public void updateSysPlay(@RequestBody SysPlay sysPlay);
    /** 
     * @description: 批量删除
     * @param: [ids]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:46
     */ 
    @DeleteMapping(value = "/sysPlay/deleteSysPlayByIds")
    public void deleteSysPlayByIds(@RequestParam List<Long> ids);
}
